package com.easyedu.dean.entity.dto.request;

import com.easyedu.dean.interfaces.InstituteDeleteGroup;
import com.easyedu.dean.interfaces.InstituteGroup;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author mfy
 */
@Data
public class ReqInstitute {

    /**
     * 功能描述:学院id
     */
    @Min(value = 1, message = "学院id必须大于0", groups = {InstituteDeleteGroup.class})
    private long instituteId;
    /**
     * 功能描述:学院名称
     */
    @NotNull(message = "学院名称不能为空", groups = {InstituteGroup.class})
    private String instituteName;
    /**
     * 功能描述:专业id
     */
    @Min(value = 1, message = "专业id必须大于0", groups = {InstituteDeleteGroup.class})
    private long departmentId;
    /**
     * 功能描述:专业名称
     */
    @NotNull(message = "专业名称不能为空", groups = {InstituteGroup.class})
    private String departmentName;
}
